package com.example.learn.service.impl;


import com.example.learn.mapper.DailyMapper;
import com.example.learn.pojo.Daily;
import com.example.learn.service.DailyService;
import com.example.learn.service.DailyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class DailyServiceImpl implements DailyService {

    @Autowired
    DailyMapper dailyMapper;

    @Override
    public List<Daily> getDailyList() {
        return dailyMapper.getDailyList();
    }

    @Override
    public int addDaily(Daily daily) {
        return dailyMapper.addDaily(daily);
    }

    @Override
    public int delDailyById(String id) {
        return dailyMapper.delDailyById(id);
    }
}
